package com.ss.SmartStock.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author author
 * @since 2024-06-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("product_details")
@ApiModel(value = "ProductDetails对象", description = "")
public class ProductDetails implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "p_details_id", type = IdType.AUTO)
    private Long pDetailsId;

    private String productName;

    private Integer raiType;

    private String description;

    private String richText;


    /**
     * 服务保障
     */
    private String serviceGuarantee;

    /**
     * 兑换限制
     */
    private Integer exchangeRestrictions;

    /**
     * 初始库存
     */
    private Integer inStock;

    /**
     * 库存
     */
    private Integer remainingStock;

    /**
     * 商品图片
     */
    private String productPicture;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime timeOn;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime timeOff;

    private String cityWhitelist;

    private String cityBlacklist;

    private Long supplier;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    private Long operator;

    private String remark;

}
